import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import MasonryWall from '@yeger/vue2-masonry-wall'
Vue.use(MasonryWall)

import axios from 'axios'
Vue.prototype.axios=axios;

import VueVirtualScroller from 'vue-virtual-scroller'
Vue.use(VueVirtualScroller)

import { RecycleScroller } from 'vue-virtual-scroller'
Vue.component('RecycleScroller', RecycleScroller)
import 'vue-virtual-scroller/dist/vue-virtual-scroller.css'

import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/antd.css'
Vue.use(Antd);

//引入事件选择框


//引入动画样式
import animateCss from 'animate.css';
Vue.prototype.animateCss = animateCss;


//引入ElementUI
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

import qs from 'qs'
Vue.prototype.qs = qs

Vue.config.productionTip = false
const myReplace = router.replace;
router.replace = function replace(location) {
  return myReplace.call(this,location).catch(err=>err);
};
const myPush = router.push;
router.push = function push(location) {
  return myPush.call(this,location).catch(err=>err);
};






new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
